package com.wangxiaonan.wxwork.exeption;

/**
 * 服务层异常
 *
 * @Author: wangxiaonan
 * @Date: 2018/8/28
 **/
public class ServiceException extends RuntimeException {

    private String code;
    private String msg;

    public ServiceException(String code, String msg) {
        super(code + ":" + msg);
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
